﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wechat.Util.ParmsConfig
{
    /// <summary>
    /// 获取config参数
    /// </summary>
    public class ParmsConfigUtil
    {
        #region 授权过期分钟

        /// <summary>
        /// 授权过期分钟
        /// </summary>
        public static int AuthorizeExpiredMin
        {
            get { return Convert.ToInt32(ConfigurationManager.AppSettings["AuthorizeExpiredMin"]); }
        }
        #endregion

        #region 微信公众号平台ID

        /// <summary>
        /// 微信公众号平台ID
        /// </summary>
        public static string WechatAppId
        {
            get
            {
                return ConfigurationManager.AppSettings["WechatAppId"];
            }
        }
        #endregion

        #region 微信Token
        /// <summary>
        /// 微信Token
        /// </summary>
        public static string WechatToken
        {
            get
            {
                return ConfigurationManager.AppSettings["WechatToken"];
            }
        }
        #endregion

        #region 微信AppSecret
        /// <summary>
        /// 微信AppSecret
        /// </summary>
        public static string WechatAppSecret
        {
            get
            {
                return ConfigurationManager.AppSettings["WechatAppSecret"];
            }
        }
        #endregion

        #region face++ AppId
        /// <summary>
        /// face++ AppId
        /// </summary>
        public static string FaceAppId
        {
            get
            {
                return ConfigurationManager.AppSettings["FaceAppId"];
            }
        }
        #endregion

        #region face++ AppSecret
        /// <summary>
        /// face++ AppSecret
        /// </summary>
        public static string FaceAppSecret
        {
            get
            {
                return ConfigurationManager.AppSettings["FaceAppSecret"];
            }
        }
        #endregion

        #region 图灵机器人TuLingKey
        /// <summary>
        /// 图灵机器人TuLingKey
        /// </summary>
        public static string TuLingKey
        {
            get
            {
                return ConfigurationManager.AppSettings["TuLingKey"];
            }
        }
        #endregion

        #region 图片上传路径
        /// <summary>
        /// 图片上传路径
        /// </summary>
        public static string ImgCaseUrl
        {
            get
            {
                return ConfigurationManager.AppSettings["ImgCaseUrl"];
            }
        }

        #endregion

        #region 网站链接地址
        /// <summary>
        /// 网站链接地址WebSiteUrl
        /// </summary>
        public static string WebSiteUrl
        {
            get
            {
                return ConfigurationManager.AppSettings["WebSiteUrl"];
            }
        }

        #endregion

        #region 回复消息间隔分钟

        /// <summary>
        /// 回复消息间隔分钟
        /// </summary>
        public static int ReplyMsgExpiredMin
        {
            get { return Convert.ToInt32(ConfigurationManager.AppSettings["ReplyMsgExpiredMin"]); }
        }
        #endregion

        #region 用户中心URL

        /// <summary>
        /// 用户中心URL
        /// </summary>
        public static string UserCenterUrl
        {
            get { return string.Empty; }
        }
        #endregion

        #region 网站名称

        /// <summary>
        /// 网站名称
        /// </summary>
        public static string SystemName
        {
            get { return ConfigurationManager.AppSettings["SystemName"]; }
        }
        #endregion

        #region 平台ID

        /// <summary>
        /// 平台ID
        /// </summary>
        public static int PlatId
        {
            get { return 0; }
        }
        #endregion

        #region 网站名称

        /// <summary>
        /// API链接地址
        /// </summary>
        public static string WechatApiUrl
        {
            get { return ConfigurationManager.AppSettings["WechatApiUrl"]; }
        }
        #endregion

        
        
    }
}
